from django.db import models
from sirogi.users.models import SirogiUser

class Letter(models.Model):


    Recipient =  models.ForeignKey(SirogiUser)
    Sender = models.CharField(max_length=200)
    Subject = models.CharField(max_length=200)
    Body = models.TextField()
    Read = models.BooleanField()
    Date = models.DateTimeField(auto_now_add=True)
    
    def MarkAsRead(self):
        self.Read = True
  
    def isRead(self):
        return self.Read

